<?php

spl_autoload_register(function($class_name){
	$path = str_replace('\\', DIRECTORY_SEPARATOR, $class_name);
	$path = str_replace('App'.DIRECTORY_SEPARATOR, '', $path);

	$path = '.' . DIRECTORY_SEPARATOR . $path .'.php';
	if(file_exists($path)){
		require_once($path);
	}
});


$a = App\index::getInstance('jmz');
$a->run();

$b = new App\test\index('jjjj');
$b->run();